<%--
  User: Shengzhao Li
--%>
<%@ attribute name="currentSprint" required="true"
              type="com.andaily.domain.dto.developer.SprintDto" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@tag pageEncoding="UTF-8" %>

<li><a href="${contextPath}/developer?currentSprint.guid=${currentSprint.guid}"><i class="icon-th-list"></i>
    Tasks (${currentSprint.amountOfTask})</a></li>
<li><a href="${contextPath}/developer/sprint_meeting/overview?sprintGuid=${currentSprint.guid}"><i
        class="icon-time"></i> Meetings</a></li>
<c:choose>
    <c:when test="${currentSprint.status eq 'CREATED'}">
        <li><a href="${contextPath}/developer/sprint_action/start/${currentSprint.guid}" class="startSprint"
               load-url="${contextPath}/developer/sprint_action/check_start/${currentSprint.guid}"><i
                class="icon-play"></i>
            Start</a></li>
        <li class="divider"></li>
        <li><a href="${contextPath}/developer/sprint_form/${currentSprint.guid}" class="editSprintClass"><i
                class="icon-edit"></i> Edit</a>
        </li>
        <li><a href="${contextPath}/developer/sprint_action/archive/${currentSprint.guid}?to=sprint" class="confirm"
               confirm-content="Are you sure archive the Sprint?"><i
                class="icon-remove"></i> Archive</a>
        </li>
    </c:when>
    <c:when test="${currentSprint.status eq 'PENDING'}">
        <li><a href="${contextPath}/developer/sprint_action/finish/${currentSprint.guid}?to=sprint" class="finishSprint"
               load-url="${contextPath}/developer/sprint_action/check_finish/${currentSprint.guid}"><i
                class="icon-ok"></i>
            Finish</a></li>
    </c:when>
    <c:when test="${currentSprint.status eq 'FINISHED'}">
        <%--${contextPath}/developer/sprint_action/report/${currentSprint.guid}--%>
        <li class="disabled"><a href="javascript:void(0);"><i
                class="icon-th"></i>
            Report</a></li>
    </c:when>
</c:choose>

